-- Written for Daggerfall Unity by Harbinger451
Quest: PROST020
DisplayName: Visit a Recommended Freelance Prostitute
-- Message panels
QRC:

QuestorOffer:  [1000]
<ce>                      The prostitutes here in %reg
<ce>                        are the best in Tamriel!
<ce>                   Perhaps I can recommend one to you?
                                     <--->
<ce>                      The prostitutes here in %reg
<ce>                     are the best in the Iliac Bay!
<ce>                    I have a particular one in mind,
<ce>                         if you're interested?
                                     <--->
<ce>                The prostitutes here are worth every penny.
<ce>                 I could recommend a special one for you?
                                     <--->
<ce>                  You haven't lived till you try out the
<ce>                      prostitutes in these parts!
<ce>                       There's one in particular
<ce>                      I'd like to suggest for you?
                                     <--->
<ce>              Have you ever been with a prostitute, young %ra?
<ce>                     You really should give it a go!
<ce>               I have one in mind that could change your life.
<ce>                  Worth every penny, if you're interested?

RefuseQuest:  [1001]
<ce>                            You're loss, %ra.
                                     <--->
<ce>                  Oh well, more fun for the rest of us.
                                     <--->
<ce>                   I was just trying to do you a favor.
                                     <--->
<ce>                         Don't look down on me!
<ce>                There's nothing wrong with prostitutes.
                                     <--->
<ce>               That's a very blinkered viewpoint my friend.
<ce>                   You don't know what you're missing!

AcceptQuest:  [1002]
<ce>                     Go see _prostitute_ of _house_
<ce>                        in __house_ and they'll
<ce>                      give you the time of your life.
<ce>                They'll only be there for =traveltime_ days, 
<ce>                     be sure to have some gold though.
                                     <--->
<ce>                     Give _prostitute_ of _house_
<ce>                         in __house_ a try.
<ce>                They'll only be there for =traveltime_ days.
<ce>                     You won't regret it my friend. 
<ce>                       It'll be money well spent.
                                     <--->
<ce>                      Try _prostitute_ of _house_
<ce>                        in __house_, and see if
<ce>                   you don't have the time of your life. 
<ce>                They'll only be there for =traveltime_ days. 
<ce>                    Be sure to take gold with you mind.
                                     <--->
<ce>                        _prostitute_ of _house_
<ce>                    in __house_ is the best there is.
<ce>                They'll only be there for =traveltime_ days. 
<ce>                     You'll get your money's worth,
<ce>                      there's not doubt about that.
                                     <--->
<ce>                 _prostitute_ of _house_ in __house_
<ce>               will put things into perspective for you.
<ce>                They'll only be there for =traveltime_ days. 
<ce>                     You'll get your money's worth,
<ce>             and you'll learn a little something along the way.

QuestFail:  [1003]
<ce>                          You won't help me?!
<ce>                       You selfish, no good %ra!
<ce>                  What am I to do? I'm Doomed! Doomed!
                                     <--->
<ce>              You're not the hero I thought you were, %pcf.
<ce>                       You're just another user!
<ce>              No better than the deviants of House Sanguine!
                                     <--->
<ce>            I'll take a beating for not getting gold from you!
<ce>                         But what do you care?
<ce>             Just leave me to suffer and be on your merry way!
                                    <--->
<ce>                      Have you no heart? No soul?
<ce>            You'd leave me in the clutches of this crazy cult?
<ce>               Get out of here and leave me to my misery!

QuestComplete:  [1004]
<ce>                 Thank you for rescuing _prostitute_, %pcf.
<ce>                The Thieves Guild owes you a debt of honor.
<ce>              House Sanguine has been taking our prostitutes,
<ce>              and even innocent citizens, and enslaving them
<ce>                in some sort of despicable orgiastic cult.
<ce>               Please accept this small reward as a token of
<ce>                             our gratitude.
                                    <--->
<ce>           Well done, %pcf, for getting _prostitute_ out of there.
<ce>             We of the Thieves Guild have much to thank you for.
<ce>                   As does the whole of the Iliac Bay.
<ce>              House Sanguine has been moving in on our turf,
<ce>              kidnapping innocent citizens, and forcing them
<ce>                in to enslaved prostitution and depravity.
<ce>              The Guild will do all it can to stop this cult.
<ce>              Including paying those that stand against them.

RumorsDuringQuest:  [1005]
At least the prostitutes seem to be doing a roaring trade.
<--->
Some Daedric sect is trying to muscle in on the prostitution game.
<--->
They say a new player is moving in on the Thieves Guild prostitution racket.

RumorsPostsuccess:  [1007]
Some %ra rescued _prostitute_ from a life of sexual slavery apparently.
<--->
_prostitute_ escaped a forced prostitution ring. Some sort of cult calling themselves House Sanguine.
<--->
_prostitute_ is claiming some sort of Daedric cult kidnapped %g2 and forced %g2 into prostitution. It's enough to send shivers up the spine.

QuestorPostsuccess:  [1008]
Oh, it's you, %pcf. I heard you rescued _prostitute_ from some forced prostitution racket. Good for you.
<--->
_prostitute_ won't stop singing your praises, %pcf. Says you saved %g2 from a life of sexual slavery.

QuestLogEntry:  [1010]
%qdt
_qgiver_ in __qgiver_ of ___qgiver_
recommended I visit an exceptional prostitute called
_prostitute_ in _house_ of __house_.
I have =traveltime_ days to meet up with them, 

Message:  1011
%qdt:
I met with prostitute _prostitute_ in _house_ of __house_.
They had been forced into prostitution by some sort of cult
and want me to rescue them. I have =escapetime_ days to
get them to _guardian_ at the safe house,
_safehouse_ in __safehouse_.

Message:  1012
<ce>               Want to get down and dirty, sweet-cheeks?
<ce>                   For you, it'll only cost 300 gold.
                                     <--->
<ce>              Want to do it like a pair of wolves in heat?
<ce>                   Special price, just 300 gold pieces.
                                     <--->
<ce>                  Do you want to use me as a plaything?
<ce>                       I'll only charge you 300?
                                     <--->
<ce>                300 gold pieces and I'm all yours lover.
<ce>                  You can do whatever you want with me?

Message:  1013
<ce>                    Oh this is going to be good, %pcf. 
<ce>                  No, wait ... I can't go through with it.
<ce>                     Please, you've got to help me!
<ce>                I'm being forced to do this against my will.
<ce>                  I've been kidnapped by House Sanguine.
<ce>                   Some sort of sadistic daedric cult!
<ce>                 Please say you'll help me get out of here.
<ce>                        Please, I'm desperate!
                                     <--->
<ce>                     I'm ready and willing, %pcf.
<ce>             No, wait... I'm not willing! I can't keep this up!.
<ce>                     Please, you've got to help me!
<ce>             They are forcing me to do this, I have no choice.
<ce>                  I'm being held prisoner by House Sanguine.
<ce>                 It's some sort of brutal trafficking ring!
<ce>                 Please say you'll help me get out of here.
<ce>                        Please, I implore you!

Message:  1014
<ce>              You didn't strike me as the penny pinching kind.
<ce>                  But perhaps you are the heroic kind?
<ce>                     Please, you've got to help me!
<ce>                I'm being forced to do this against my will.
<ce>                  I've been kidnapped by House Sanguine.
<ce>                 It's some sort of brutal trafficking ring!
<ce>                 Please say you'll help me get out of here.
<ce>                        Please, I'm desperate!
                                     <--->
<ce>                I wouldn't have pegged you as cheap, %pcf.
<ce>                But I would peg you as a no nonsense hero?
<ce>                     Please, you've got to help me!
<ce>             They are forcing me to do this, I have no choice.
<ce>                 I'm being held prisoner by House Sanguine.
<ce>                   Some sort of sadistic daedric cult!
<ce>                 Please say you'll help me get out of here.
<ce>                        Please, I implore you!

Message:  1015
<ce>                          Oh thank the Divines!
<ce>                     Quick, we must get out of here!
<ce>                     There's always someone watching!
<ce>                          Keeping an eye on me!
<ce>                       Here comes one of them now!
<ce>                        Quick! Take me with you!
<ce>                  There's a Thieves Guild safe house...
<ce>                   It's at _safehouse_ in __safehouse_.
<ce>                   I'll be safe there with _guardian_, but
<ce>                 %g1'll only be there for =escapetime_ days.
                                     <--->
<ce>                          %oth! Thank you, %pcf.
<ce>                 You've got to take me away from here now!
<ce>                     There's always someone watching!
<ce>                          Keeping an eye on me!
<ce>                       Here comes one of them now!
<ce>                      Quick! Get us away from here!
<ce>            Take me to _guardian_ at _safehouse_ in __safehouse_.
<ce>            It's a Thieves Guild safe house. They can protect me.
<ce>               But %g1'll only be there for =escapetime_ days.


Message:  1016
%qdt:
I rescued _prostitute_ from a House Sanguine cult
and safely got %g2 to _guardian_ at the
safe house, _safehouse_ in __safehouse_.

Message:  1017
<ce>                  This whore has been sworn to the service
<ce>               of Sanguine! You will pay for daring to oppose
<ce>                     his will and that of his servants!
                                     <--->
<ce>                     Where do you think you're going?!
<ce>            _prostitute_ is sworn to the revelry of Lord Sanguine!
<ce>                    You must pay for defying his will!

Message:  1018
<ce>                     You dare oppose House Sanguine?!
<ce>                   We'll make you pay for this defiance!

Message:  1019
<ce>               You spent time with a harlot of House Sanguine;
<ce>                        leaving without paying gold
<ce>                      means you must now pay in blood!

Message:  1020
<ce>                  House Sanguine sends its regards, %pcn!
                                     <--->
<ce>                House Sanguine always repays a slight, %pcn!
                                     <--->
<ce>                   House Sanguine knows your name, %pcn!

Message:  1021
<ce>               House... Sanguine... will... hunt... you... down!

Message:  1022
<ce>                   You failed to get _prostitute_ to the
<ce>                       safe house in time so %g1 says
<ce>                 farewell and decides to fend for %g2self.

QBN:

Item _reward_ gold range 200 to 400

Person _qgiver_ group Questor
Person _prostitute_ faction The_Prostitutes
Person _guardian_ faction The_Thieves_Guild

Place _house_ local house1
Place _safehouse_ remote house2

Clock _traveltime_ 24:00
Clock _escapetime_ 15.00:00
Clock _revengetime_ 3.00:00

Foe _procurer1_ is Rogue
Foe _procurer2_ is Nightblade
Foe _procurer3_ is Rogue
Foe _assassin_ is Assassin

-- Quest start-up:
	start timer _traveltime_
	log 1010 step 0
	place npc _prostitute_ at _house_

_traveltime_ task:
	remove log step 0
	end quest

_prostituteclicked_ task:
	clicked npc _prostitute_

_successorfailure_ task:
	when _prostituteclicked_
	prompt 1012 yes _pcpay_ no _pctight_

_pcpay_ task:
	prompt 1013 yes _pcyes_ no _pcno_

_pctight_ task:
   	prompt 1014 yes _pcyes_ no _pcno_

_pcyes_ task:
	say 1015
	hide npc _prostitute_
	add _prostitute_ face
	start timer _escapetime_
	place npc _guardian_ at _safehouse_
	create foe _procurer1_ every 0 minutes 1 times with 100% success
	create foe _procurer2_ every 2 minutes 3 times with 50% success
	create foe _assassin_ every 360 minutes 12 times with 25% success
	remove log step 0
	log 1011 step 1

_pcno_ task:
	say 1003
	start timer _revengetime_
	change repute with _prostitute_ by -5
	create foe _procurer3_ every 0 minutes 1 times with 100% success
	create foe _procurer2_ every 2 minutes 3 times with 50% success
	create foe _assassin_ every 360 minutes 12 times with 25% success
	remove log step 0

_roguetalk_ task:
	injured _procurer1_ saying 1017

_nightbladetalk_ task:
	injured _procurer2_ saying 1018

_procurer3talk_ task:
	injured _procurer3_ saying 1019

_assassintalk_ task:
	injured _assassin_ saying 1020

_killedprocurer1_ task:
	killed 1 _procurer1_ saying 1021

_killedprocurer3_ task:
	killed 1 _procurer3_ saying 1021

_guardianclicked_ task:
	clicked npc _guardian_

_escapedsafely_ task:
	when _pcyes_ and _guardianclicked_
	give pc _reward_
	drop _prostitute_ face
	place npc _prostitute_ at _safehouse_
	change repute with _guardian_ by +5
	change repute with _prostitute_ by +5
	remove log step 1
	log 1016 step 2
	end quest

_escapetime_ task:
	say 1022
	drop _prostitute_ face
	change repute with _prostitute_ by +2
	remove log step 1
	end quest

_revengetime_ task:
	end quest